package com.example.demo.entity;

public class User {
    private String username;
    private String password;
    private boolean banned;
    private boolean admin;

    public User(){

    }

    public User(int id, String name, String password, boolean banned, boolean admin) {

        this.username = name;
        this.password = password;
        this.banned = banned;
        this.admin = admin;
    }

    /* 右键Source->Generate Getters and Setters*/
    public void setUsername(String username) {
        this.username = username;
    }

    public String getUsername() {
        return username;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getPassword() {
        return password;
    }

    public void setBanned(boolean banned) {
        this.banned = banned;
    }
    public boolean getBanned() {
        return banned;
    }
    public void setAdmin(boolean admin) {
        this.admin = admin;
    }
    public boolean getAdmin() {
        return admin;
    }

    @Override
    public String toString() {
        return "User{" +
                "username='" + username + '\'' +
                ", password='" + password + '\'' +
                ", banned=" + banned +
                ", admin=" + admin +
                '}';
    }
}
